<template>
  <h2>Route</h2>
  <breadCrumb :data="data"></breadCrumb>
  <router-view></router-view>
</template>
<script setup>
  import { ref,getCurrentInstance,onMounted } from "vue";
  import breadCrumb from "./components/bread/index.vue"

  let data = ref([])
  onMounted(()=>{ 
    // console.log(getCurrentInstance());

    let instance = getCurrentInstance()
    let $bus = instance.appContext.config.globalProperties.$bus
    $bus.$on('breadChange',input=>{
      // console.log(input);
      data.value = input
    })
  })
</script>

  